package com.mzj.saas.mservice.sys.controller;

import com.mzj.saas.commons.ResultBean;
import com.mzj.saas.mservice.bill.vo.HouseContractPayTimeVO;
import com.mzj.saas.mservice.sys.service.HouseContractPayTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 增加企业合同租金/押金支付时效设置
 */

@Controller
@RequestMapping("/houseContractPayTime")
public class HouseContractPayTimeController {

    @Autowired
    private HouseContractPayTimeService houseContractPayTimeService;

    @GetMapping
    @ResponseBody
    public ResultBean<Object> list(@RequestHeader String accessToken){

        return houseContractPayTimeService.list(accessToken);
    }

    /**
     * 设置
     */
    @PostMapping
    @ResponseBody
    public ResultBean<Object> setting(@RequestHeader String accessToken, @RequestBody HouseContractPayTimeVO vo){

        return houseContractPayTimeService.setting(accessToken,vo);
    }


}
